package com.ziyun.pop.modules.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ziyun.pop.modules.order.entity.ErpOrderEntity;
import com.ziyun.pop.modules.order.dao.ErpOrderHelperDao;
import com.ziyun.pop.modules.order.service.OrderHelperService;
import com.ziyun.pop.modules.order.vo.OrderHelpVO;
import io.renren.common.utils.R;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderHelperServiceImpl extends ServiceImpl<ErpOrderHelperDao, ErpOrderEntity> implements OrderHelperService {


    @Override
    public R getOrderHelperData(Long sellerId) {
        //查询出当前用户的订单列表;
        List<OrderHelpVO> orderHelpVOList = this.baseMapper.queryOrderListByUserId(sellerId);

        return R.apiOk(orderHelpVOList);
    }
}
